home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DJEMU106.ARJ / E11.CC < prev    next >
C/C++ Source or Header  |  1991-04-22  |  311b  |  24 lines

  1. #include "emu.h"
  2. #include "rmov.h"
  3.  
  4. void emu_11()
  5. {
  6.   if (empty())
  7.     return;
  8.   if (modrm > 0277)
  9.   {
  10.     // fxch st(i)
  11.     int i = modrm & 7;
  12.     if (empty(i))
  13.       return;
  14.     reg t;
  15.     r_mov(st(), t);
  16.     r_mov(st(i), st());
  17.     r_mov(t, st(i));
  18.   }
  19.   else
  20.   {
  21.     emu_bad();
  22.   }
  23. }
  24.